home *** CD-ROM | disk | FTP | other *** search
/ Merciful 2 / Merciful - Disc 2.iso / software / e / elfworksforlightwave.lha / ClickToInstall < prev    next >
AmigaDOS Script File  |  1994-01-10  |  3KB  |  93 lines

  1. .KEY pathname
  2. .DEF pathname "DH0:Toaster/3D"
  3.  
  4. echo "x ELF Works Software Installer v1.0"
  5. echo "x"
  6. echo "This script will install needed files onto your system."
  7. echo "It will also create an assignment to your Toaster/3D directory"
  8. echo "called 3D: if one does not exist. This will be permanently added"
  9. echo "to your s:User-Startup script if you choose."
  10. echo
  11. echo "If you do not have a 3D: assignment already, just choose `Cancel'"
  12. echo "when requested  to `insert volume 3D:', and the installation"
  13. echo "will continue."
  14. echo
  15. ask  "(Press return to continue)"
  16.  
  17. if not exists 3D:
  18.    echo "The installer does not detect an assignment to 3D:"
  19.    if $Workbench NOT GE 39 VAL
  20.       skip WORKBENCH2
  21.    else
  22.       skip WORKBENCH3
  23.    endif
  24. else
  25.    skip INSTALLARCHIVES
  26.  
  27. lab WORKBENCH2
  28. echo "Creating temporary assignment of 3D: to <pathname>."
  29. Assign >NIL: 3D: "<pathname>"
  30. if warn
  31.    echo "The drawer <pathname> could not be found!"
  32.    echo "Using the Workbench, please select the 3D drawer inside your Toaster"
  33.    echo "drawer. This should be inside one of the hard drives on your WorkBench"
  34.    echo "screen (Work, DH0, Amiga, etc.). You will have to select 'Show All Files'"
  35.    echo "from the 'Window' menu to make the '3D' drawer visible."
  36.    echo "Once you have found the drawer, click once on the 'ClickToInstall' icon"
  37.    echo "on this disk, then hold down either shift key and double-click on the"
  38.    echo "'3D' drawer. The script will then install the files into the 3D drawer."
  39.    ask  "(Press return to exit and try again)"
  40.    quit
  41. endif
  42. echo >>ENV:pathname2 <pathname>
  43. skip INSTALLFILES
  44.  
  45. lab WORKBENCH3
  46. echo "Please use the following file requester to select the drawer you"
  47. echo "normally store all your 3D Objects and Scenes in."
  48. echo
  49. ask  "(Press return to continue)"
  50. lab GETPATH
  51. RequestFile >ENV:pathname2 DRAWER <pathname> TITLE "Select your 3D drawer..." DRAWERSONLY NOICONS 
  52. echo "Creating temporary assignment of 3D: to$pathname2."
  53. echo
  54. Assign 3D: $pathname2
  55. if warn
  56.    echo "The drawer$pathname2 could not be found!"
  57.    echo "When requested, please select the 3D drawer inside your Toaster"
  58.    echo "drawer. The Toaster drawer should be inside one of the hard drives"
  59.    echo "installed on your system (Work, DH0, Amiga, etc.)."
  60.    echo "Once you have found the drawer, select it and make sure the entire"
  61.    echo "pathname shows up in the file requester."
  62.    echo "Click on the 'OK' button to choose that drawer as your"
  63.    echo "new 3D: directory."
  64.    echo
  65.    ask  "(Press return to try again)"
  66.    skip GETPATH back
  67. endif
  68.  
  69. lab INSTALLFILES
  70. echo "Would you like your s:User-Startup file PERMANENTLY changed"
  71. echo "to add an assignment to 3D: (a backup copy of your original" 
  72. ask  "will be created)?"
  73. if warn
  74.    copy s:User-Startup s:User-Backup
  75.    echo >>s:User-Startup ";Begin ELF Works 3D: Assignment"
  76.    echo >>s:User-Startup "Assign 3D: " NOLINE
  77.    type >>s:User-Startup FROM ENV:pathname2
  78.    echo >>s:User-Startup ";End ELF Works 3D: Assignment"
  79.    echo "Change completed!"
  80.    echo "A copy of your old script exists as s:User-Backup."
  81. endif
  82. lab INSTALLARCHIVES
  83. ask "Would you like to install the files into 3D:?"
  84. if warn
  85.    echo "Installing files . . ."
  86.    lha x *.lha 3D:
  87. else
  88.    lab QUITINSTALL
  89.    echo "Exiting installation without installing files."
  90.    quit 5
  91. endif
  92. quit 0
  93.